<?php

defined('BASEPATH') OR exit('No direct script access allowed');

class MY_Controller extends CI_Controller {

    public function __construct() {
        parent::__construct();
        $sess_data = $this->session->userdata();
        isset($sess_data['is_login']) ? $is_login = $sess_data['is_login'] : $is_login = FALSE;
        if (!$is_login) {
            redirect('/welcome/login');
        }
    }

}
